package com.smm.dao;


import com.smm.entity.Song;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("songDao")
public interface SongDao {
    List<Song> findSongPage(Song song);
    Integer addSong (Song song);
    Integer deleteSong (Integer id);
    Song findSong(Song song);
    Integer updateSong(Song song);
    //Song findSongById(Integer id);

    /**
     * 根据歌曲id查找歌单
     * @param id
     * @return
     */
    Song getCollectBySongId(Integer id);

}
